
import java.io.Serializable;
import java.rmi.RemoteException;
/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 *
 * @author ntthinh
 */
public class EntityImpl implements Entity, Serializable {
     private static final long serialVersionUID = 2L;
    private WordImpl word;
    private String definition;

    public Word myEntry()
            throws java.rmi.RemoteException {
        return this.word;

    }
    /*
     * getEntry() : récupérer une entité WordImpl de cet entité
     */
     public WordImpl getEntry()
    {
        return (WordImpl) this.word;
    }


    //setter: fixer le mot d'une entité
    public void setMyEntry(Word word) {
        this.word = (WordImpl) word;
    }

    public String myDefinition()
            throws java.rmi.RemoteException {
        return this.definition;
    }

    public void setDefinition(String def) {
        this.definition = def;
    }
}
